package com.nanyang.tms.api.dto.request.ticket;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class TicketImportRequest extends ApiRequest {

    private static final long serialVersionUID = 3338682254786903928L;
    @JsonIgnore
    private String pin;
    /**
     * 单号种类编码
     */
    @NotEmpty(message = "单号种类编码能为空")
    @Length(max = 32, message = "ticketTypeCode长度需小于32个字符")
    private String ticketTypeCode;

    /**
     * 单号文件url
     */
    @NotEmpty(message = "单号文件url不能为空")
    @Length(max = 500, message = "ticketUrl长度需小于500个字符")
    private String ticketUrl;
    @Override
    public void requestCheck() {

    }

}
